export const SUCCESS_CODE = 200;
export const BAD_PARAMS = 400;
export const TOKEN_INVALID = 401;
export const ERROR_CODE = 500;
export const Result = {
  success: (data, message = "请求成功") => {
    return {
      code: SUCCESS_CODE,
      data,
      message
    }
  },
  error: (code, message) => {
    return {
      code,
      message
    }
  }
}